/*
* 埋点(事件)：event
* */

import http from "../http";
// 新增
const eventAdd = (params) => http ({ method: 'post',  url: '/behavior/track/add', data: params});
// 列表
const eventList = (params) => http ({ method: 'post',  url: '/behavior/track/list', data: params});
// 修改
const eventUpdate = (params) => http ({ method: 'post',  url: '/behavior/track/update', data: params});
// 详情
const eventQuery = (params) => http ({ method: 'post',  url: '/behavior/track/query', data: params});
// 删除
const eventDelete = (params) => http ({ method: 'post',  url: '/behavior/track/delete', data: params});
// 状态修改
const eventStatusUpdate = (params) => http ({ method: 'post',  url: '/behavior/track/status/operate', data: params});
// 事件分析
const eventReport = (params) => http ({ method: 'post',  url: '/behavior/track/visit/query', data: params});

const eventApi = {
    eventAdd,
    eventList,
    eventUpdate,
    eventQuery,
    eventDelete,
    eventStatusUpdate,
    eventReport
}
export default eventApi;
